<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="../css/login.css">
</head>
<body>
    <div class="header">
      <p class="first">
        <img src="https://ecpassport.ceair.com/login/pc/images/logo-login.png" alt="">
      </p>
      <p class="last">
        <a href="#"><span>B2B</span></a>
        <span>|</span>
        <a href="#"><span>B2G</span></a>
        <span>|</span>
        <a href="#"><span>B2C</span></a>
      </p>
    </div>
    <div class="banner"> 
      <div class="login">
          <ul>
              <li class="active">登录</li>
              <li>注册</li>
          </ul>
          <ol>
              <li class="active">
                <p>请登录,开始您的购买吧!</p>
                <form class="logon">
                  <p> 用户名 <input class="username" type="text" placeholder="请输入您的用户名 ^_^"></p>
                  <p>密码 &nbsp;&nbsp;&nbsp;<input class="password" type="password" placeholder="请输入您的密码 ^_^"></p>
                  <p class="error">用户名密码错误!</p>
                  <p class="jump">还没有账号, <a href="#">去注册</a></p>
                  <button>登录</button>
                </form>
              </li>
              <li>
                <p>请注册后登录,开始您的购买吧!</p>
                <form class="register">
                  <p> 用户名 <input class="name" type="text" placeholder="请输入您的用户名 ^_^"></p>
                  <p>密码 &nbsp;&nbsp;&nbsp;<input class="password1" type="password" placeholder="请输入您的密码 ^_^"></p>
                  <p>确认密码<input type="password" class="newpassword" placeholder="请再次输入您的密码 ^_^"></p>
                  <p>昵称 <input type="text" class="newname" placeholder="请输入您想设置的昵称 ^_^"></p>
                  <p class="arror">该用户名以被占用, 请更换后重试! ^_^</p>
                  <p class="crror">注册成功,请右方按钮登录</p>
                  <p class="empty">进入登录</p>
                  <button>注册</button>
                </form>
              </li>
          </ol>
      </div>
  
      <div class="nav">欢迎登录</div>
      <ul class="img">
        <li><img src="https://ecpassport.ceair.com/login/pc/images/img-1.jpg" alt=""></li>
        <li><img src="https://ecpassport.ceair.com/login/pc/images/img-2.jpg" alt=""></li>
        <li><img src="https://ecpassport.ceair.com/login/pc/images/img-3.jpg" alt=""></li>
        <li><img src="https://ecpassport.ceair.com/login/pc/images/img-4.jpg" alt=""></li>
        <li><img src="https://ecpassport.ceair.com/login/pc/images/img-5.jpg" alt=""></li>
      </ul>
    </div>
    <div class="footer">
      <p>关于东航 |旅行须知 |法律和隐私条款 |常见问题 |网站地图 |联系我们 |天合联盟|友情链接</p>
      <p>Copyright &copy; 中国东方航空 沪ICP备10009470号-9</p>
    </div>
    
   <script src="../js/util.js"></script>
   <script src="../js/login.js"></script>
   <script src="../js/jquery.min.js"></script>
    <script>
      $('.banner> .login> ul > li').on('click', function () {
           $(this).addClass('active').siblings().removeClass('active')
           $('.banner> .login> ol > li').removeClass('active').eq($(this).index()).addClass('active')
     })

     $('.banner> .login >ol > li >.logon>.jump').on('click', function () {
      $(this).parent().parent().removeClass('active').next().addClass('active')
      $('.banner> .login> ul > li').removeClass('active').eq(1).addClass('active')
})

     $('.banner> .login >ol > li >.register>.empty').on('click', function () {
      $(this).parent().parent().removeClass('active').prev().addClass('active')
      $('.banner> .login> ul > li').removeClass('active').eq(0).addClass('active')
})
    </script>


</body>
</html>